package com.ape.mapsa.bpm.service;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service(value = "prodHelper")
@Transactional
public class ProductionHelper {
	private final static Logger log = Logger.getLogger(ProductionHelper.class);
	public static final Integer REJECTED_ITEM = 2;
	public static final Integer APPROVED_BYADMIN_ITEM = 3;
	public static final Integer NEW_ITEM = 0;
	public static final Integer ACTIVE_ITEM = 1;

	public boolean isNewItem(Integer state) {
		log.info("checking item state: " + state);
		return state.equals(NEW_ITEM);
	}

	public void printhola() {
		log.info("HOLA INMUNDO");
	}

	public void printhola1() {
		log.info("HOLA INMUNDO 1");
	}

}
